﻿using System;

namespace MessagePack.Decoders
{
	// Token: 0x020000BF RID: 191
	internal class UInt16UInt64 : IUInt64Decoder
	{
		// Token: 0x060002E6 RID: 742 RVA: 0x0000BBD4 File Offset: 0x00009FD4
		private UInt16UInt64()
		{
		}

		// Token: 0x060002E7 RID: 743 RVA: 0x0000BBDC File Offset: 0x00009FDC
		public ulong Read(byte[] bytes, int offset, out int readSize)
		{
			readSize = 3;
			return (ulong)((long)((int)bytes[offset + 1] << 8 | (int)bytes[offset + 2]));
		}

		// Token: 0x040000DD RID: 221
		internal static readonly IUInt64Decoder Instance = new UInt16UInt64();
	}
}
